function updatePwd() {
    axios.get("/user/updatePwd", {
        params: {
            pwd: $("oldPwd").value,
            newPwd: $("newPwd").value
        }
    }).then(resp=>{
       let info=resp.data;
       if (info=="ok"){
           showDiv('showInfoDiv');
           $("showInfo").style.color = "black";
           $("showInfo").innerHTML = "修改成功";
       } else {
           showDiv('showInfoDiv');
           $("showInfo").style.color = "red";
           $("showInfo").innerHTML = "密码输入错误。";
       }
    });

}

function showDiv(id) {
    $(id).style.visibility = "visible";
}

function closeDiv(id) {
    $(id).style.visibility = "hidden";
}